<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>linux | zsdfbb的博客</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1">
    <meta name="description" content="">
    <meta name="generator" content="Hugo 0.109.0">
    
    
    
    
      <meta name="robots" content="noindex, nofollow">
    

    
<link rel="stylesheet" href="/ananke/css/main.min.css" >



    
    
    
      

    

    
    
      <link href="/categories/linux/index.xml" rel="alternate" type="application/rss+xml" title="zsdfbb的博客" />
      <link href="/categories/linux/index.xml" rel="feed" type="application/rss+xml" title="zsdfbb的博客" />
      
    
    
    <meta property="og:title" content="linux" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://zsdfbb.gitee.io/categories/linux/" />
<meta itemprop="name" content="linux">
<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="linux"/>
<meta name="twitter:description" content=""/>

	
  </head>

  <body class="ma0 avenir bg-near-white">

    

  <header>
    <div class="pb3-m pb6-l bg-black">
      <nav class="pv3 ph3 ph4-ns" role="navigation">
  <div class="flex-l justify-between items-center center">
    <a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
      
        zsdfbb的博客
      
    </a>
    <div class="flex-l items-center">
      

      
      
<div class="ananke-socials">
  
</div>

    </div>
  </div>
</nav>

      <div class="tc-l pv3 ph3 ph4-ns">
        <h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
          linux
        </h1>
        
      </div>
    </div>
  </header>


    <main class="pb7" role="main">
      
  <article class="cf pa3 pa4-m pa4-l">
    <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links mid-gray">
      <p>Below you will find pages that utilize the taxonomy term “linux”</p>
    </div>
  </article>
  <div class="mw8 center">
    <section class="flex-ns flex-wrap justify-around mt5">
      
        <div class="relative w-100  mb4 bg-white">
          <div class="relative w-100 mb4 bg-white nested-copy-line-height">
  <div class="bg-white mb3 pa4 gray overflow-hidden">
    <span class="f6 db">Posts</span>
    <h1 class="f3 near-black">
      <a href="/posts/qemu_debug_linux/" class="link black dim">
        构建linux调试环境
      </a>
    </h1>
    <div class="nested-links f5 lh-copy nested-copy-line-height">
      构建linux调试环境 由于研究linux内核的需要，我需要一个基于qemu/gdb/aarch64/linux 6.2 的调试环境。 这个是我部署的环境，仅供参考。
我的开发环境 我使用 ubuntu 20.04 作为开发环境。同时我安装了下列程序，用于linux、busybox的编译、调试。
sudo apt update -y &amp;&amp; sudo apt upgrade -y sudo apt install qemu-user qemu-user-static gcc-aarch64-linux-gnu sudo apt install binutils-aarch64-linux-gnu sudo apt install binutils-aarch64-linux-gnu-dbg sudo apt install build-essential libncurses5-dev sudo apt install git bison flex libssl-dev sudo apt install gdb gdb-multiarch 我的目录结构 我的目录组织如下所示下面一些脚本配置个这些目录结构有关
[17:32:20] [~/Develop/LinuxLab] -&gt; % tree -L 2 . ├── busybox │ ├── build │ ├── build.sh │ ├── install │ └── src ├── linux │ ├── build │ ├── build.
    </div>
  </div>
</div>

        </div>
      
    </section>
  </div>

    </main>
    <footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
  <div class="flex justify-between">
  <a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="https://zsdfbb.gitee.io/" >
    &copy;  zsdfbb的博客 2023 
  </a>
    <div>
<div class="ananke-socials">
  
</div>
</div>
  </div>
</footer>

  </body>
</html>
